import Mock from 'mockjs'
import { getUserInfoApi } from "./api/userApi";
//配置拦截 Ajax 请求时的行为。支持的配置项有：timeout。
Mock.setup({
  timeout: 400
})
 
//获取用户信息
Mock.mock("/user/userInfo", 'get', Mock.mock(getUserInfoApi));

//用户登陆
Mock.mock("/user/login", 'get', Mock.mock(getUserInfoApi));